const htmlPlugin= require("html-webpack-plugin");
const ExtractPlugin= require("extract-text-webpack-plugin");
const webpack = require("webpack");

const pluigns={
	html:new htmlPlugin({
		minify:{
			removeAttributeQuotes:true,
		},
		hash:true,
		template:"./app/index.html"
	}),
	extractCss:new ExtractPlugin({
		filename:"css/[name].css",
		ignoreOrder:true,
	}),
	providePlugin:new webpack.ProvidePlugin({
				$:"jquery",
				JQuery:"jquery",
	}),
	commonsChunkPlugin:new webpack.optimize.CommonsChunkPlugin({
				name:"jquery",
				filename:"assets/js/[name].min.js"
	}),
}

module.exports=pluigns;